package refactor.changeunidirectionalassociationtobidirectional.result;

public class Client {
    public void clientMethod() {
        Order order1 = new Order("1");
        Customer dayna = new Customer("dayna");
        order1.setCustomer(dayna);
        System.out.println(order1.state());
        Customer daynaBaby = new Customer("daynaBaby");
        order1.setCustomer(daynaBaby);
        System.out.println(order1.state());
        // change orders for customer
        Order order2 = new Order("2");
        daynaBaby.addOrder(order2);
        System.out.println(daynaBaby.state());
        System.out.println(order2.state());
        System.out.println(dayna.state());

    }

    public static void main(String[] args) {
        new Client().clientMethod();
    }
}
